package com.kling.http;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class Text2VideoGetData {

    @com.alibaba.fastjson2.annotation.JSONField(name = "task_id")
    private String taskId;
    @com.alibaba.fastjson2.annotation.JSONField(name = "task_status")
    private String taskStatus;
    @com.alibaba.fastjson2.annotation.JSONField(name = "task_status_msg")
    private String taskStatusMsg;
    @com.alibaba.fastjson2.annotation.JSONField(name = "task_info")
    private TaskInfoDTO taskInfo;
    @com.alibaba.fastjson2.annotation.JSONField(name = "task_result")
    private TaskResultDTO taskResult;
    @com.alibaba.fastjson2.annotation.JSONField(name = "created_at")
    private Long createdAt;
    @com.alibaba.fastjson2.annotation.JSONField(name = "updated_at")
    private Long updatedAt;

    @NoArgsConstructor
    @Data
    public static class TaskInfoDTO {
        @com.alibaba.fastjson2.annotation.JSONField(name = "external_task_id")
        private String externalTaskId;
    }

    @NoArgsConstructor
    @Data
    public static class TaskResultDTO {
        @com.alibaba.fastjson2.annotation.JSONField(name = "videos")
        private List<VideosDTO> videos;

        @NoArgsConstructor
        @Data
        public static class VideosDTO {
            @com.alibaba.fastjson2.annotation.JSONField(name = "id")
            private String id;
            @com.alibaba.fastjson2.annotation.JSONField(name = "url")
            private String url;
            @com.alibaba.fastjson2.annotation.JSONField(name = "duration")
            private String duration;
        }
    }
}


  

